-- GENERATED SPELL FOR [Stormforged Iron Giant] --


function spell0_29375(pUnit, Event) --@Call of Earth,n/a--
pUnit:FullCastSpellOnTarget(55512,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29375', 544, 1)
end

function spell1_29375(pUnit, Event) --@Shockwave,n/a--
pUnit:FullCastSpellOnTarget(57741,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29375', 2000, 1)
end

function Sorts_29375(pUnit, Event)
local choix_sorts_29375 = math.random(0, 1)
if choix_sorts_29375 == 0 then
pUnit:RegisterEvent('spell0_29375', 1, 1)
end
if choix_sorts_29375 == 1 then
pUnit:RegisterEvent('spell1_29375', 1, 1)
end
end

function mob29375_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29375', math.random(1500, 3000), 1)
end

function mob29375_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29375_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29375_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29375, 1, 'mob29375_Action')
RegisterUnitEvent(29375, 2, 'mob29375_Leave')
RegisterUnitEvent(29375, 3, 'mob29375_Kill')
RegisterUnitEvent(29375, 4, 'mob29375_Die')
